#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int N = 1e5 + 10;
long long a[N];
long long n, k;
long long calc(int x)
{
    long long ret = 0;
    for (int i = 0; i <= n; i++)
    {
        ret += a[i] / x;
    }
    return ret;
}
int main()
{
    cin >> n >> k;
    for (int i = 1; i <= n; i++)
    {
        cin >> a[i];
    }
    long long left = 0;
    long long right = 1e8;
    while (left < right)
    {
        long long mid = (left + right + 1) / 2;
        if (calc(mid) >= k)
        {
            left = mid;
        }
        else
        {
            right = mid - 1;
        }
    }
    cout << left << endl;
    return 0;
}